package ym.ecrm.core.domain.salesManagement;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ym.ecrm.core.domain.base.BaseEntity;
import ym.ecrm.core.domain.customerManagement.Contacter;
import ym.ecrm.core.domain.systemManagement.User;

/**
 * 销售机会跟踪
 * 
 * @author Princess
 * @version 1.0
 */
@Entity
@Table(name = "t_trackSalesOpportunity")
public class TrackSalesOpportunity extends BaseEntity {
	/**
	 * 销售机会跟踪编号
	 */
	private String trackSalesOpportunityCode;
	/**
	 * 销售机会跟踪主题
	 */
	private String trackSalesOpportunityTheme;
	/**
	 * 销售机会跟踪时间
	 */
	private Date TrackSalesOpportunityTime;		
	/**
	 * 联系人
	 */
	@ManyToOne
	@JoinColumn(name="contacter_id")
	private Contacter contacter;
	/**
	 * 状态
	 */
	private String trackStatus;	
	/**
	 * 进展阶段
	 */
	private String progressTages;	
	/**
	 * 销售机会跟踪内容
	 */
	private String trackContent;	
	/**
	 * 下一步计划
	 */
	private String nextPlan;	
	/**
	 * 负责人
	 */
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user;
	public String getTrackSalesOpportunityCode() {
		return trackSalesOpportunityCode;
	}
	public void setTrackSalesOpportunityCode(String trackSalesOpportunityCode) {
		this.trackSalesOpportunityCode = trackSalesOpportunityCode;
	}
	public String getTrackSalesOpportunityTheme() {
		return trackSalesOpportunityTheme;
	}
	public void setTrackSalesOpportunityTheme(String trackSalesOpportunityTheme) {
		this.trackSalesOpportunityTheme = trackSalesOpportunityTheme;
	}
	public Date getTrackSalesOpportunityTime() {
		return TrackSalesOpportunityTime;
	}
	public void setTrackSalesOpportunityTime(Date trackSalesOpportunityTime) {
		TrackSalesOpportunityTime = trackSalesOpportunityTime;
	}
	public Contacter getContacter() {
		return contacter;
	}
	public void setContacter(Contacter contacter) {
		this.contacter = contacter;
	}
	public String getTrackStatus() {
		return trackStatus;
	}
	public void setTrackStatus(String trackStatus) {
		this.trackStatus = trackStatus;
	}
	public String getProgressTages() {
		return progressTages;
	}
	public void setProgressTages(String progressTages) {
		this.progressTages = progressTages;
	}
	public String getTrackContent() {
		return trackContent;
	}
	public void setTrackContent(String trackContent) {
		this.trackContent = trackContent;
	}
	public String getNextPlan() {
		return nextPlan;
	}
	public void setNextPlan(String nextPlan) {
		this.nextPlan = nextPlan;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
}
